package com.daJiao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daJiao.entity.SysUserRole;
import com.daJiao.mapper.SysUserRoleMapper;
import com.daJiao.service.SysUserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    @Resource
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public int batchDeleteByRoleId(String roleId) {
        return sysUserRoleMapper.batchDeleteByRoleId(roleId);
    }

    @Override
    public int batchDeleteByUserId(String userId) {
        return sysUserRoleMapper.batchDeleteByUserId(userId);
    }
}
